/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package server.piles;

/**
 *
 * @author paula
 */
public class main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
         Piles p = new Piles();
         Piles a = new Piles();
         p.create("nomepilha");
         p.push("nomepilha","paula");
         p.push("nomepilha","patricia");
         p.push("nomepilha","carlos");
         p.push("nomepilha","bruna");
         p.push("nomepilha","joao");
         p.pop("nomepilha");
         a.create("oi");
         a.push("oi","maria");
         
         String[] as = p.dump("nomepilha");
         for(String s : as)
         {
             System.out.println(s);
         }
         
         
    }
}
